package com.course_design.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.course_design.service.StudentService;

@Controller
public class TestController {
	@Autowired
	private StudentService studentService;
	@RequestMapping(value="/test")
	@ResponseBody
	public String test() {
		String [] studentNums= {"16021010410","16021010411"};
		studentService.updateStudent(studentNums, 1,1);
		return "success";
	}
}
